package com.example.emergency;

import android.app.Activity;
import android.app.ListActivity;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.AdapterView.OnItemClickListener;

public class Manage extends ListActivity{
	
	static SQLiteDatabase db=null;
	private TempDB mDbtemp;
	
	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		//	setContentView(R.layout.list_item);
		setContentView(R.layout.empty);
		//  TextView tv=(TextView) findViewById(R.id.pppp);
		// tv.setText("hiiii");
		 //setContentView(tv);
		
			 
		  /*     
		       
		     //  final String[] COUNTRIES = new String[] {"Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra"};
		       setListAdapter(new ArrayAdapter<String>(this, R.layout.list_item, rd.mArrayList));
		       
		       ListView lv = getListView();
		       lv.setTextFilterEnabled(true);
		       lv.setOnItemClickListener(new OnItemClickListener() {

					@Override
					public void onItemClick(AdapterView<?> parent, View view,
							int position, long id) {
						Toast.makeText(getApplicationContext(), ((TextView) view).getText(),
				    	          Toast.LENGTH_SHORT).show();
						
					}
		    	  });
		    //   while(mCursor.moveToNext())
		     //  {
		              // String name = mCursor.getString(1);  
		       //        key = mCursor.getString(1);       
		     //  }
		       //tv.setText(key);
		        * */
		        
	       
	}
	

}
